<%
    require '/var/www/html/aboutyou-ruby-sdk/AboutYou-SDK/lib/aboutyou-sdk.rb'

    ay = AY.new(100, '3ed93394c2b5ebd12c104b177b928ad0')

    criteria = ay.product_search_criteria.filter_by_facet_ids([0 => [264], 2 => [40,42]])

    productResult = ay.fetch_product_search(criteria)
    products = productResult.products
    products.each do |key, product|
%>
        <%= product.name %>
<%
    end
%>